specifically, we look for stdarg.h and unistd.h for zlib.
/gpsbabel.html
/gpsbabel.pdf
/Makefile
+/.qmake.cache
+/.qmake.stash
+/GPSBabel
*.o
/GPSBabel[0-9]*.[0-9]*.[0-9]*/
/GPSBabel[0-9]*.[0-9]*.[0-9]*.tar.bz2
INCLUDEPATH += zlib
+load(configure)
+
macx|linux {
- DEFINES += HAVE_NANOSLEEP HAVE_LIBUSB HAVE_GLOB HAVE_UNISTD_H
+ qtCompileTest(unistd) {
+ # this is used by zlib
+ DEFINES += HAVE_UNISTD_H
+ }
+ qtCompileTest(stdarg) {
+ # this is used by zlib
+ DEFINES += HAVE_STDARG_H
+ }
+ DEFINES += HAVE_NANOSLEEP HAVE_LIBUSB HAVE_GLOB
SOURCES += gbser_posix.cc
JEEPS += jeeps/gpslibusb.cc
INCLUDEPATH += jeeps
--- /dev/null
+/Makefile
+/stdarg
--- /dev/null
+#include <stdarg.h>
+int main() { return 0; }
--- /dev/null
+SOURCES = main.cpp
--- /dev/null
+/Makefile
+/unistd
--- /dev/null
+#include <unistd.h>
+int main() { return 0; }
--- /dev/null
+SOURCES = main.cpp